package site.lizhivscaomei.aliyun.oss.entity;

/**
 * 回调返回实体类
 * Created by lizhi on 2019/1/10.
 */
public class CallBackBodyResponse {
    //移动应用上传文件到OSS的哪个存储空间
    private String bucket;
    //移动应用上传文件到OSS后保存的文件名
    private String object;
    //该上传的文件的ETag，即返回给用户的etag字段
    private String etag;
    //上传文件的大小
    private String size;
    //资源类型
    private String mimeType;
    private ImageInfo imageInfo;

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public String getEtag() {
        return etag;
    }

    public void setEtag(String etag) {
        this.etag = etag;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public ImageInfo getImageInfo() {
        return imageInfo;
    }

    public void setImageInfo(ImageInfo imageInfo) {
        this.imageInfo = imageInfo;
    }

    //图片信息
    class ImageInfo {
        //图片高度
        private double height;
        //图片宽度
        private double width;
        //图片格式，如jpg、png等
        private String format;

        public double getHeight() {
            return height;
        }

        public void setHeight(double height) {
            this.height = height;
        }

        public double getWidth() {
            return width;
        }

        public void setWidth(double width) {
            this.width = width;
        }

        public String getFormat() {
            return format;
        }

        public void setFormat(String format) {
            this.format = format;
        }
    }
}
